<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<html>
	<head>
		<title>创建订单信息</title>
		<%@ include file="/comm.jsp"%>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">

		<style type="text/css">
<!--
fieldset {
	padding: 10px;
	margin: 10px;
	width: 270px;
	color: #333;
}

legend {
	color: #06c;
	font-weight: 800;
}

.tit_small2 {
	float: left;
	width: 750px;
	font-weight: bold;
	color: #333;
	clear: both;
	text-align: left;
	padding: 10px;
	padding-bottom: 0;
}

.tit_small2 a {
	font-weight: 500;
}

.tab_box {
	width: 770px;
	clear: both;
	padding: 10px 0;
}

.table_1 {
	width: 635px;
	border-left: 1px #c4d5e0 solid;
	border-top: 1px #c4d5e0 solid;
	clear: both;
	text-align: left;
}

.table_1 td {
	padding: 8px 0 6px 0;
	color: #333;
	text-indent: 10px;
	border-bottom: 1px #c4d5e0 solid;
	border-right: 1px #c4d5e0 solid;
}

.table_1 .tit_l {
	text-align: right;
	text-indent: 0px;
	background-color: #ecf5ff;
	color: #666;
}

.table_1 .tit_head {
	text-align: center;
	text-indent: 0px;
	background-color: #ecf5ff;
	color: #666;
}

.table_1 strong {
	color: #459207;
	margin-left: 10px;
}

.table_1 font {
	color: #f60;
}

.table_2 {
	width: 100%;
	border-left: 1px #c4d5e0 solid;
	border-top: 1px #c4d5e0 solid;
	border-bottom: 1px #c4d5e0 solid;
	border-right: 1px #c4d5e0 solid;
	clear: both;
	text-align: left;
}

-->
</style>
	</head>
	<body>
		<s:form name="formpage" action="order_save" namespace="/seal">
			<%@ include file="/messages.jsp"%>
			<input type="hidden" id="hdfRoletype" value="${orderInfo.roleType }" />
			<div>
				<table width="100%"  border="0" cellpadding="0"
					cellspacing="1">
					<tr>
						<td width="200px" valign="top">
							<table class="table_2" border="0" cellpadding="0"
								cellspacing="1">
								<tr>
									<td>
										商品信息
									</td>
								</tr>
								<tr>
									<td align="center">
										<IMG height="180" width="180" alt="商品图片"
											src="<%=request.getContextPath()%>/upload/seal/${product.image1}">
									</td>
								</tr>
								<tr>
									<td>
										<table border="0" cellpadding="0" cellspacing="1">
											<tr>
												<td align="right">
													<input type="hidden" id="productId"
														name="orderInfo.productId" value="${orderInfo.productId}" />
													商品名称：
												</td>
												<td>
													${orderInfo.productName}
												</td>
											</tr>
											<tr>
												<td align="right">
													型&nbsp;&nbsp;号：
												</td>
												<td>
													${orderInfo.type}
												</td>
											</tr>
											<tr>
												<td align="right">
													颜&nbsp;&nbsp;色：
												</td>
												<td>
													<input type="hidden" name="orderInfo.color"
														value="${orderInfo.color}" />
													${orderInfo.color}
												</td>
											</tr>
											<tr>
												<td align="right">
													单&nbsp;&nbsp;价：
												</td>
												<td>
													<input type="hidden" id="hdfPrice"
														value="${orderInfo.price}" />
													<input type="hidden" id="hdfScore"
														value="${orderInfo.score}" />
													<input type="hidden" id="hdfDiscount"
														name="orderInfo.discount" value="${orderInfo.discount}" />
													${orderInfo.price}
													<s:if test='"RMB"==#request.orderInfo.currtype'>
														元
													</s:if>
													<s:elseif test='"USD"==#request.orderInfo.currtype'>
														美元
													</s:elseif>
												</td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
						</td>
						<td valign="top">
							<div>
								<table class="table_1" border="0" cellspacing="0"
									cellpadding="0">
									<tr>
										<td colspan="4">
											<strong> 订单信息 </strong>
										</td>
									</tr>
									<tr>
										<td class="tit_l">
											订单号：
										</td>
										<td>
											&nbsp;${orderInfo.id}
										</td>
										<td class="tit_l">
											订单状态：
										</td>
										<td>
											&nbsp;<s:property value="showStatus(#request.orderInfo.status)" />
										</td>
									</tr>
									<tr>
										<td class="tit_l">
											下单账户：
										</td>
										<td>
											&nbsp;${orderInfo.userId}
										</td>
										<td class="tit_l">
											订单日期：
										</td>
										<td>
											&nbsp;${orderInfo.createDate }
										</td>
									</tr>
									<tr>
										<td class="tit_l">
											订购数量：
										</td>
										<td>
											&nbsp;${orderInfo.amount}
										</td>
										<td class="tit_l">
											折扣：
										</td>
										<td>
											&nbsp;${orderInfo.discount}
										</td>
									</tr>
									<tr>
										<td class="tit_l">
											订单金额：
										</td>
										<td>
											&nbsp;${orderInfo.totalprice }
											<s:if test='"RMB"==#request.orderInfo.currtype'>
														元
													</s:if>
											<s:elseif test='"USD"==#request.orderInfo.currtype'>
														美元
													</s:elseif>
										</td>
										<td class="tit_l">
											赠送积分：
										</td>
										<td>
											&nbsp;${orderInfo.totalscore}
										</td>
									</tr>
									<tr>
										<td colspan="4">
											<strong>收货人信息</strong>
										</td>
									</tr>
									<tr>
										<td class="tit_l">
											收货人：
										</td>
										<td>
											&nbsp;${orderInfo.userName }
										</td>
										<td class="tit_l">
											联系电话：
										</td>
										<td>
											&nbsp;${orderInfo.cellphone }
										</td>
									</tr>
									<tr>
										<td class="tit_l">
											收货地址：
										</td>
										<td colspan="3">
											&nbsp;${orderInfo.address }，${orderInfo.postcode }
										</td>
									</tr>

									<tr>
										<td colspan="4">
											<strong>封条编码信息</strong>
										</td>
									</tr>
									<tr>
										<td class="tit_l">
											编码位数：
										</td>
										<td>
											&nbsp;${orderInfo.seqLen }
										</td>
										<td class="tit_l">
											商标：
										</td>
										<td>
											&nbsp;${orderInfo.trademark }
										</td>
									</tr>
									<tr>
										<td class="tit_l">
											编码规则：
										</td>
										<td colspan="3">&nbsp;<s:if test='"01"==#request.orderInfo.roleType'>全数字</s:if><s:elseif test='"02"==#request.orderInfo.roleType'>字母+数字，字母前辍：${orderInfo.seqChar }
													</s:elseif>
										</td>
									</tr>
									<s:if test='"A06"== #request.orderInfo.status'>
									<tr>
										<td class="tit_l">
											封条号：
										</td>
										<td colspan="3">
											&nbsp;${orderInfo.startId }~${orderInfo.endId }
										</td>
									</tr>
									</s:if>
									<tr>
										<td class="tit_l">
											订单留言：
										</td>
										<td colspan="3">
											&nbsp;${orderInfo.message }
										</td>
									</tr>

								</table>
							</div>
							<div>
								<input type="button" class="button" id="btnCancel" value=" 返 回 "
									onclick="return backHome(this.form,'order_listUserOrder')" />
							</div>
						</td>
					</tr>
				</table>
			</div>
		</s:form>
	</body>
</html>
